# &
"""
101
111
————
101
"""
print(5 & 7)  # 5

# |
"""
101
111
————
111
"""
print(5 | 7)  # 7

# ^
"""
101
111
————
010
"""
print(5 ^ 7)  # 2

# ~
"""
符号（0）101
————
符号（1）010
"""
print(~5)  # -6

# <<
"""
101
10100
"""
print(5 << 2)  # 20